package com.yang.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author 杨天可
 * @Date 2021/3/30 11:56
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@Table(name = "task_replacement")
public class TaskReplacement implements Serializable {
/*
补卡详细申请表
 */
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Integer id;

    @Column(name = "userinfo_id")
    private Integer userInfoId;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @Column(name = "work_date")
    private Date workDate;

    @Column(name = "hr_is_read")
    private Integer hrIsRead;

    @Column(name = "hr_id")
    private Integer hrId;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "hr_approval_time")
    private Date hrApprovalTime;

    @Column(name = "director_is_approval")
    private Integer directorIsApproval;

    @Column(name = "director_id")
    private Integer directorId;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "director_approval_time")
    private Date directorApprovalTime;

    @Column(name = "status")
    private Integer status;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "insert_time")
    private Date insertTime;
}
